import Vue from 'vue'
import App from './App'
import store from '@/store/store'
import AppDialog from '@/components/app-dialog'
import AppTitle from '@/components/app-title'
import {toast,showConfirm,show,hide,error} from "@/common/common.js"
import uView from "uview-ui";


Vue.use(uView);
uni.$u.setConfig({
	config: {
		unit: 'rpx'
	}
})

Vue.component('app-title', AppTitle)
Vue.component('app-dialog', AppDialog)


Vue.prototype.$store = store;
Vue.prototype.toast = toast
Vue.prototype.showLoading = show;
Vue.prototype.hideLoading = hide;
Vue.prototype.errorLoading = error;
Vue.prototype.showConfirm = showConfirm
Vue.config.productionTip = false


App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()